<xtree>
## displayMenu is defined in WEB-INF/classes/globalMacros.vm
#macro( menuItem $menu $level )
  ## set title
  #set ($title = $displayer.getMessage($menu.title))
  #set ($node = $menu.name)
  #if ($level != 0)
  <tree>
     	<tilte>$title</tilte>
     	<src>#if($menu.forward)$!menu.forward#end</src>
     	<action>#if($menu.action)$!menu.action#end</action>
     	<target>#if($menu.target)$!menu.target#end</target>
     	<checkbox>#if($menu.checkbox)$!menu.checkbox#end</checkbox>
     	<iconarr>#if($menu.iconarr)$!menu.iconarr#end</iconarr>
     	<leaf>$!menu.leaf</leaf>
     </tree>       
  #end
#end

#displayMenu($menu 0)
</xtree>